#pragma once
#include "stdint.h"
#include "f1c100s_spi.h"
#include "f1c100s_gpio.h"
#include "f1c100s_clock.h"

extern Spi_handle_def spi0_handle;
void spi0_cs(uint8_t state);
void spi0_init(void);
void spi0_write_and_read(uint8_t *tx, uint8_t *rx, uint32_t length);